package com.ksyun.cloudhostalarmprocessing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李厚航
 * @since 2024-05-07
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("alerts")
@ApiModel(value = "Alerts对象", description = "")
public class Alerts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("告警id")
    @TableId(value = "alert_id", type = IdType.ASSIGN_ID)
    private Long alertId;

    @ApiModelProperty("指标id")
    @TableField("metric_id")
    private Long metricId;


    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

//    @ApiModelProperty("定时任务报错的主机号")
//    @TableField("hostname")
//    private String hostname;


    public Alerts(Long metricId, String description) {
        this.metricId = metricId;
        this.description = description;
    }
}
